package router

import (
	"dev-manage/hadlers"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {

	r := gin.Default()
	// 2.绑定路由规则，执行的函数
	// gin.Context，封装了request和response
	r.POST("orderAdd", hadlers.OrderAdd)
	r.GET("orderList", hadlers.OrderList)
	r.GET("orderDetail", hadlers.OrderDetail)
	return r
}
